package com.lanou3g.ptp.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@ApiModel("任务类")
public class Task implements Serializable {
    @ApiModelProperty("任务id")
    private Long id;
    @ApiModelProperty("任务名")
    private String name;
    @ApiModelProperty("任务描述")
    private String description;
    @ApiModelProperty("基地id")
    private Long baseId;
    @ApiModelProperty("教学环节id")
    private Long teachlinkId;
    @ApiModelProperty("讲师id(校内或校外讲师)")
    private Long baseTeacherId;
    @ApiModelProperty("负责老师1")
    private Long teacherId1;
    @ApiModelProperty("负责老师2")
    private Long teacherId2;
    @ApiModelProperty("经度")
    private String longitude;
    @ApiModelProperty("维度")
    private String latitude;
    @ApiModelProperty("分配方式(1自主报名2统一报名)")
    private Integer distribution;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("任务开始时间")
    private Date taskStartTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("任务结束时间")
    private Date taskEndTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("报名开始时间")
    private Date applyStartTime;
    @ApiModelProperty("报名结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date applyEndTime;
    @ApiModelProperty("评分类型(0五星制 1百分制)")
    private Integer gradingType;
    @ApiModelProperty("半径")
    private Integer radius;
    @ApiModelProperty("创建时间")
    transient private Date createTime;
    @ApiModelProperty("修改时间")
    transient private Date updateTime;
    @ApiModelProperty("状态码:0未开始 1进行中 2任务结束 3学生自主提交 4老师审批不合格")
    private Integer status;
    @ApiModelProperty("基地实体类属性")
    private Base base;
    @ApiModelProperty("教学环节实体类属性")
    private Teachlink teachlink;
    @ApiModelProperty("老师实体类属性")
    private Teacher teacher;
    @ApiModelProperty("基地名")
    private String bname;
    @ApiModelProperty("教学环节名")
    private String tlname;
}
